package ashbyutils.error;

import java.io.PrintStream;
import java.io.PrintWriter;

public class MyException extends Exception {

	private static final long serialVersionUID = 1L;
	private Exception wrappedException = null;

	public MyException(Exception anException) {
		wrappedException = anException;
	}

	public Exception getWrappedException() {
		return wrappedException;
	}

	public Throwable getCause() {
		return getWrappedException().getCause();
	}

	public String getLocalizedMessage() {
		return getWrappedException().getLocalizedMessage();
	}

	public String getMessage() {
		return getWrappedException().getMessage();
	}

	public StackTraceElement[] getStackTrace() {
		return getWrappedException().getStackTrace();
	}

	public synchronized Throwable initCause(Throwable arg0) {
		return getWrappedException().initCause(arg0);
	}

	public void printStackTrace() {
		getWrappedException().printStackTrace();
	}

	public void printStackTrace(PrintStream arg0) {
		getWrappedException().printStackTrace(arg0);
	}

	public void printStackTrace(PrintWriter arg0) {
		getWrappedException().printStackTrace(arg0);
	}

	public void setStackTrace(StackTraceElement[] arg0) {
		getWrappedException().setStackTrace(arg0);
	}

	public String toString() {
		return getWrappedException().toString();
	}

}
